<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function getRandomInt(min,max){
            min = Math.ceil(min)
            max = Math.floor(max)
            return Math.floor(Math.random()*(max-min+1))+min
        }
        console.log(getRandomInt(1,10))
        var arr = ['d','l','n','h','w']
        console.log(arr[getRandomInt(0,arr.length-1)])
    </script>
</body>
</html>